home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / Skeleton ƒ / skeleton.h < prev    next >
C/C++ Source or Header  |  1997-02-27  |  2KB  |  49 lines

  1. #include <Fonts.h>                            /*These are "include" statements: The contain the*/
  2. #include <Events.h>                            /*actual code for certian functions you willl use.*/
  3. #include <Menus.h>                            /*(e.g. If you are going to use windows and windowing */
  4. #include <Windows.h>                        /*functions in you program you must first include the*/
  5. #include <TextEdit.h>                        /*"windows.h" file.)*/
  6. #include <Dialogs.h>
  7.  
  8.  
  9.     
  10. /* Constants */
  11. #define appleID                128                /* resource IDs/menu IDs for Apple */
  12. #define fileID                129                /* and File menu*/
  13.  
  14.  
  15.     
  16. #define appleM                0                /* Index for each menu in myMenus*/ 
  17. #define fileM                1                /* (array of menu handles) */
  18.  
  19. #define menuCount            2                /* Total number of menus */
  20.  
  21.  
  22.  
  23. /*items in the file menu*/
  24. #define quitItem            1                /* Quit in the file menu of course. */
  25.  
  26. /*item in the apple menu*/
  27. #define aboutMeCommand        1                /* Menu item in apple menu for About Command */
  28.     
  29.     
  30. /* Globals */    
  31. Rect            dragRect;                        /* Rectangle used to mark bounds for dragging window */
  32. MenuHandle        appleMenu;                        /* The apple menu problems. */
  33. EventRecord        myEvent;                        /* The main event loop event. */
  34. WindowPtr        whichWindow;                    /* A imaginary window used for compairing to*/
  35. char            theChar;                        /* A place holder for when a key is pressed*/
  36. Boolean            quit;                            /* Flag to see if we want to quit. */
  37.                     
  38.  
  39.  
  40. /* Prototypes */
  41. //MW added function argument type
  42.  
  43. void InitToolBox(void);
  44. void InitOtherStuff(void);
  45. void SetUpMenus(void);
  46. void EventLoop(void);
  47. void MenuHandler(long int mResult);
  48. void ShowAboutMeDialog(void);
  49.